package org.example.controller;

import org.example.pojo.CardInfo;
import org.example.pojo.UserInfo;
import org.example.service.CardInfoService;
import org.example.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

@Controller
@RequestMapping("/customer")
public class CustomerController {

    @Autowired
    private UserInfoService userInfoService;

    @Autowired
    private CardInfoService cardInfoService;

    @GetMapping("/index")
    public String customerIndex(){
        return "customer/index";
    }

    @GetMapping("/deposit")
    public String deposit(){
        return "customer/deposit/form";
    }

    @GetMapping("/withdraw")
    public String withdraw(){
        return "customer/withdraw/form";
    }

    @GetMapping("/transfer")
    public String transfer(){
        return "customer/transfer/form";
    }

    @GetMapping("/balance")
    public String balance(){
        return "customer/balance/form";
    }

    @GetMapping("/reportloss")
    public String reportloss(){
        return "customer/reportloss/form";
    }


    @GetMapping("/password")
    public String password(){
        return "customer/password/form";
    }



}
